<?php defined('IN_YUNYECMS') or exit('No permission.'); ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title><?php echo $seo["title"] ;?></title>
	<meta name="keywords" content="<?php echo $seo["keywords"] ;?>" />
	<meta name="description" content="<?php echo $seo["description"] ;?>" />
	<!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>bootstrap/css/bootstrap.min.css">
  <link href="<?php echo YUNYECMS_PUBLIC;?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>plugins/font-awesome-4.7.0/css/font-awesome.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>plugins/iCheck/all.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/skins/_all-skins.min.css">
  <link href="<?php echo YUNYECMS_UI;?>plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/plugins.css">
  <link rel="stylesheet" href="<?php echo YUNYECMS_UI;?>dist/css/member.css">
  <link rel="shortcut icon" href="<?php echo YUNYECMS_UI;?>dist/img/favicon.ico" /> 
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body class="hold-transition skin-green sidebar-mini fixed">
<div class="wrapper">
   <?php include tpl("left","member"); ?>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
  
      <ol class="breadcrumb">
           <li><a href="<?php echo url('member/member/index');?>"><i class="fa fa-home"></i> 首页</a></li>
		    <?php if(is_array($breadcumb)): $i = -1; $__DATA__ = $breadcumb;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
				       <?php if($i+1!=count($breadcumb)) { ?>
					   <li><a href="<?php echo $v["url"] ;?>"><?php echo $v["title"] ;?></a></li> 
					   <?php } else { ?>
					   <li  class="active"><?php echo $v["title"] ;?></li> 
					   <?php } ?>
			<?php  endforeach;  endif; ?>
      </ol>
     <?php include tpl("fast","member"); ?>
    </section>
	  <div class="container-fluid" id="mainwrap">
    <!-- Main content -->
    <section class="content">
      <div class="row">
        <!-- left column -->
        <div class="col-md-12">
        
        <div class="box box-info">
            <div class="box-header with-border">
               <h3 class="box-title"> 会员资料    </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
		 <form name=defaultForm id="defaultForm" class="form-horizontal"  method="post"  action="<?php echo url('member/member/myinfo');?>"   enctype="multipart/form-data"  >
              <div class="box-body">
				     <div class="form-group" >
								<label class="col-md-2 control-label" for="keywords">用户名：</label>
								 <div  class="col-md-6">
									<input type="text"   class="form-control"  name="username" id="username" value="<?php echo $member["username"] ;?>"  placeholder="请输入用户名或手机号码"  disabled  />
								</div>
								<div class="col-sm-2">
                                 <span class="font-red">  </span>
                               </div>
						 </div> 
				        <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">手机：</label>
                          <div  class="col-md-6">
                            <input type="text" name="mobile" class="form-control" id="mobile" value="<?php echo $member["mobile"] ;?>"  disabled placeholder="请输入手机">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div> 
                         <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">电话：</label>
                          <div  class="col-md-6">
                            <input type="text" name="phone" class="form-control" id="phone" value="<?php echo $member["phone"] ;?>" placeholder="请输入电话">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div> 
                       <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">E-mail：</label>
                          <div  class="col-md-6">
                            <input type="text" name="email" class="form-control" id="email" disabled value="<?php echo $member["email"] ;?>" placeholder="请输入E-mail">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div> 
                        <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">姓名：</label>
                          <div  class="col-md-6">
                            <input type="text" name="name" class="form-control" id="name" value="<?php echo $member["name"] ;?>" placeholder="请输入姓名">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div> 
					   <div class="form-group" >
							<label class="col-md-2 control-label" for="title">性别：</label>
							<div  class="col-md-6">
							 <input type="radio" name="sex" value="1" class="minimal-blue"  <?php if($member['sex']==1) { ?>checked<?php } ?> >  男   
							 <input type="radio" name="sex" value="2" class="minimal-blue"  <?php if($member['sex']==2) { ?>checked<?php } ?> >  女 &nbsp;
							 <input type="radio" name="sex" value="3" class="minimal-blue" <?php if($member['sex']==3) { ?>checked<?php } ?> >  保密 &nbsp;
							</div>
						</div>
             
                            <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">地址：</label>
                          <div  class="col-md-6">
                            <input type="text" name="address" class="form-control" id="address" value="<?php echo $member["address"] ;?>" placeholder="请输入地址">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div> 
                          <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">公司：</label>
                          <div  class="col-md-6">
                            <input type="text" name="company" class="form-control" id="company" value="<?php echo $member["company"] ;?>" placeholder="请输入公司">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div>                                                                                                                  <div class="form-group" >
                          <label for="tel" class="col-md-2 control-label">职位：</label>
                          <div  class="col-md-6">
                            <input type="text" name="position" class="form-control" id="position" value="<?php echo $member["position"] ;?>" placeholder="请输入职位">
                          </div>
                         <div class="col-sm-2">
                            <font class="red">  </font>
                          </div>
                        </div>                 
              </div>
              <!-- /.box-body -->
              <div class="box-footer">
              <div class="form-group">
                 <div class="col-md-offset-3 col-md-9">
				    <input type="hidden" name="id" id="id" value="<?php echo $member["id"] ;?>">
                     <input type="hidden" name="token" id="token" value="<?php echo $token;?>">
                     <input type="hidden" name="yyact" id="yyact" value="edit">
					 <button type="submit" class="btn bg-blue  btn-flat"> <i class="icon fa fa-edit"></i> 修 改 </button> &nbsp; &nbsp;
                     <button type="reset" class="btn btn-default btn-flat"> <i class="fa fa-undo"></i> 重 置 </button>                                         
            </div>	
              </div>
              </div>
              <!-- /.box-footer -->
            </form>
          </div>
        </div>
        <!--/.col (left) -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>

  </div>
  <!-- /.content-wrapper -->
   <?php include tpl("foot","member"); ?>

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->

</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="<?php echo YUNYECMS_UI;?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="<?php echo YUNYECMS_UI;?>bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="<?php echo YUNYECMS_UI;?>plugins/iCheck/icheck.min.js"></script>
<!-- AdminLTE App -->
<script type="text/javascript" src="<?php echo YUNYECMS_UI;?>validator/dist/js/bootstrapValidator.js"></script>
<script src="<?php echo YUNYECMS_UI;?>dist/js/app.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('#defaultForm').bootstrapValidator({
        message: 'This value is not valid',
//        live: 'disabled',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            name: {
                message: '姓名是无效的',
                validators: {
                    notEmpty: {
                        message: '姓名必需填写'
                    },
                }
            },
			email: {
                validators: {
                    emailAddress: {
                        message: '您输入的不是一个有效的电子邮件地址！'
                    },
                }
            },
        }
    });
});
</script>
<script>
			  $(function () {
				//iCheck for checkbox and radio inputs
				$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
				  checkboxClass: 'icheckbox_minimal-blue',
				  radioClass: 'iradio_minimal-blue'
				});
				//Red color scheme for iCheck
				$('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
				  checkboxClass: 'icheckbox_minimal-red',
				  radioClass: 'iradio_minimal-red'
				});
				$('input[type="checkbox"].minimal-blue, input[type="radio"].minimal-blue').iCheck({
				  checkboxClass: 'icheckbox_minimal-blue',
				  radioClass: 'iradio_minimal-blue'
				});
				//Flat red color scheme for iCheck
				  $('input[type="checkbox"].flat-blue, input[type="radio"].flat-blue').iCheck({
				  checkboxClass: 'icheckbox_flat-blue',
				  radioClass: 'iradio_flat-blue'
				});
			  });
     </script>
</body>
</html>
